package graph.color;

public class Color {
	public float hueMax;
	public float hueMin;
	public Color(float hueMin, float hueMax) {
		this.hueMin = hueMin;
		this.hueMax = hueMax;
	}
	public java.awt.Color get(float value) {
		float hue = (value) * (hueMax-hueMin) + hueMin;
		java.awt.Color color = new java.awt.Color(java.awt.Color.HSBtoRGB(hue, 1.f, 1.f));
		return color;
	}	
}